package version;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Oracle {
    private static String url;
    private static String username;
    private static String password;
    public static void getParam(String fileName) throws IOException {
        Properties p=new Properties();
        InputStream fis=
                Oracle.class.getClassLoader().getResourceAsStream(fileName);
        p.load(fis);
        url=p.getProperty("url");
        username=p.getProperty("username");
        password=p.getProperty("password");
        System.out.println("数据库基本信息:"+username+url+password);
    }

    public static void main(String[] args) throws IOException {
        Oracle.getParam("db_Oracle.properties");
        //作业2:参考Mysql工具类---编写Oracle工具类
        //作业3:【增加一条操作--mi库--book】 查询


    }
}
